
<div class="pageContent">
	<form method="post" action="/system/user/update" target="selectedTodo" ref="ids" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
				<input name="id" value="${user.id}"type="hidden" size="30" />
			<p>
				<label>用户名称：</label>
				<input name="username" readonly="readonly" value="${user.username}"type="text" size="30" />
			</p>
			<div class="divider"></div>
			<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="2%"><input type="checkbox" group="ids"
					class="checkboxCtrl">
				</th>
				<th width="20%" orderField="employeeId" class="asc">角色编号</th>
				<th width="20%" orderField="employeeName">角色名称</th>
				<th width="20%"></th>
			</tr>
		</thead>
		<tbody>
	<% for(role in roleList){ %>
			<tr target="employee" rel="1">
			<% 
			var i=false;
			for(role2 in roleList2){
			 if(role2.id == role.id){ %>
				<td><input name="id" value="${role.id}" checked="checked" type="checkbox"></td>
				<%i=true;
				}
			}
		if(i==false){ %>
				<td><input name="roleId" value="${role.id}" type="checkbox"></td>
		<% } %>
				<td>${role.id}</td>
				<td>${role.roleName}</td>
				<td></td>
			</tr>
	<%} %>
		</tbody>
	</table>
		</div>
		
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
